package com.crowntit.domain.trade.model.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class NotifyTaskEntity {

    /**
     * 活动id
     */
    private Long activityId;

    /**
     * 拼团id
     */
    private String teamId;

    /**
     * 回调类型
     */
    private String notifyType;

    /**
     * MQ消息详情
     */
    private String notifyMq;

    /**
     * 回调地址
     */
    private String notifyUrl;

    /**
     * 回调次数
     */
    private Integer notifyCount;

    /**
     * 任务参数
     */
    private String parameterJson;

    public String lockKey() {
        return "notify_job_lock_key_" + this.teamId;
    }

}
